-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Ethernet support for Portenta + Ethernet Shield #81
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Good extension of previously laid out pattern 🙇
NetworkConnectionState EthernetConnectionHandler::update_handleInit() | ||
{ | ||
if (Ethernet.hardwareStatus() == EthernetNoHardware) { | ||
#if !defined(__AVR__) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is not explicitly targeted on this PR. But since AVR is not and will not be supported on Arduino IoT Cloud (its not technically feasible), you can drop all those #if !defined(__AVR__)
statements.
Otherwise we cannot distinguish between LoRa/Ethernet Vision Shield
@manchoz i've updated the PR. This should fix also the reconnection issue. Would you give it a spin? |
👋 @pennam it works perfectly! LGTM |
Memory usage change @ 2462ec0
Click for full report table
Click for full report CSV
|
@manchoz @aentinger sorry to bother you again with this PR. I have done some changes : 1026b98 Since eth connection is available on multiple boards for portenta (breakout, machine control...) it makes no reason to add a specific define for each one. 1f3b9a5 b53dd95 This one is to be able to create a simpler template for cloud sketches. 2462ec0 And this is for const correctness |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
LGTM 👍 |
Memory usage change @ 4e68980
Click for full report table
Click for full report CSV
|
This PR is based on #41 and #70 and adds ethernet support for Portenta H7. In order to get Ethernet connectivity the vision shield needs to be connected.
Since there is plenty of flash available for Portenta, Ethernet connectivity is always included in the build together with WiFi support.
Ci is failing because static IP configuration is based on this arduino/ArduinoCore-mbed#526